<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div class="content-wrapper" th:fragment="new-subject">
    <section class="content-header">
        <h1>
            题库管理
            <small>添加题目</small>
        </h1>
    </section>
    <section class="content">
        <div class="box">
            <div class="box-body">
                <form action="/subject/saveSubject" method="post" class="form-horizontal">
                    <label style="font-size: 22px">题目：</label><textarea class="form-control" name="problem" cols="30" rows="10"></textarea>

                    <ul class="list-group">
                        <li class="list-group-item list-group-item-success">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">选项A：</label>
                                <div class="col-sm-11">
                                    <input type="text" class="form-control" placeholder="请在此输入A选项内容" name="optiona">
                                </div>
                            </div>
                        </li>
                        <li class="list-group-item list-group-item-info">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">选项B：</label>
                                <div class="col-sm-11">
                                    <input type="text" class="form-control" placeholder="请在此输入B选项内容" name="optionb">
                                </div>
                            </div>
                        </li>
                        <li class="list-group-item list-group-item-success">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">选项C：</label>
                                <div class="col-sm-11">
                                    <input type="text" class="form-control" placeholder="请在此输入C选项内容" name="optionc">
                                </div>
                            </div>
                        </li>
                        <li class="list-group-item list-group-item-info">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">选项D：</label>
                                <div class="col-sm-11">
                                    <input type="text" class="form-control" placeholder="请在此输入D选项内容" name="optiond">
                                </div>
                            </div>
                        </li>
                    </ul>

                    <HR style="border:1px dashed #987cb9"  color=#987cb9 SIZE=1>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">题目类型:</label>
                        <div class="col-sm-11">
                            <label class="radio-inline"><input type="radio" name="subject_type" value="0">单选题</label>
                            <label class="radio-inline"><input type="radio" name="subject_type" value="2">多选题</label>
                            <label class="radio-inline"><input type="radio" name="subject_type" value="1">判断题</label>
                        </div>
                    </div>
                    <hr>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">答案：</label>
                        <div class="col-sm-11">
                            <input type="text" class="form-control" placeholder="请输入答案，多选以,隔开，如A,B,C" name="answer">
                        </div>
                    </div>
                    <hr>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">媒体类型:</label>
                        <div class="col-sm-11">
                            <label class="radio-inline"><input type="radio" name="media_type" value="0">无</label>
                            <label class="radio-inline"><input type="radio" name="media_type" value="1">图片</label>
                            <label class="radio-inline"><input type="radio" name="media_type" value="2">视频</label>
                        </div>
                    </div>
                    <hr>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">媒体上传:</label>
                        <div class="col-sm-11">
                            <input type="file" class="btn btn-primary" name="mpath">
                        </div>
                    </div>
                    <hr>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">语音读题:</label>
                        <div class="col-sm-11">
                            <input type="file" class="btn btn-primary" name="musicpath">
                        </div>
                    </div>
                    <hr>

                    <HR style="border:3px double #987cb9"  color=#987cb9 >

                    <label style="font-size: 22px">答题技巧：</label><textarea name="subject_trick" class="form-control" cols="30" rows="8"></textarea>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">技巧媒体类型:</label>
                        <div class="col-sm-11">
                            <label class="radio-inline"><input type="radio" name="trick_media_type">无</label>
                            <label class="radio-inline"><input type="radio" name="trick_media_type">图片</label>
                            <label class="radio-inline"><input type="radio" name="trick_media_type">视频</label>
                        </div>
                    </div>
                    <hr>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">技巧媒体上传:</label>
                        <div class="col-sm-11">
                            <input type="file" class="btn btn-primary">
                        </div>
                    </div>
                    <hr>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">技巧语音:</label>
                        <div class="col-sm-11">
                            <input type="file" class="btn btn-primary" name="dmusicpath">
                        </div>
                    </div>
                    <hr>

                    <button class="btn btn-info btn-lg" type="submit">保存提交</button>

                </form>
            </div>
        </div>
    </section>
</div>